package reduce.fz.com.reduce;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

import reduce.fz.com.reduce.activity.BaseActionBarActivity;
import reduce.fz.com.reduce.activity.BaseActivity;
import reduce.fz.com.reduce.activity.DoorActivity;
import reduce.fz.com.reduce.activity.FirstActivity;
import reduce.fz.com.reduce.activity.LoginActivity;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //setContentView(R.layout.activity_main);
        Intent intent = new Intent(this, FirstActivity.class);

        startActivity(intent);
    }

    @Override
    public int getContentRid() {
        return 0;
    }

    @Override
    public void initWidget() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();

        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}
